# 从字符串生成整型元素的列表
# ord返回ASCII或Unicode值
symbols = '$¢£¥€¤'
codes = [ord(symbol) for symbol in symbols]
print(codes)
# 迭代得末尾值
x = 'lubenwei mei kaigua'
it = [ord(x) for x in 'ABC']
print(it)
# 在Py3中原来x的值将不会再被覆盖
print(x)
